package cn.mulanbay.schedule.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

/**
 *
 * @author fenghong
 * @create 2022-01-16 10:00
 */
@TableName("task_server")
public class TaskServer implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 服务器节点
     */
    private String deployId;

    private String ipAddress;

    /**
     * 是否启动
     */
    private Boolean status;

    /**
     * 是否支持分布式
     */
    private Boolean supportDistri;

    /**
     * 当前正在运行的job数
     */
    private Integer cejc;

    /**
     * 被调度的任务数
     */
    private Integer sjc;

    private Date startTime;

    private Date lastUpdateTime;

    private Date shutdownTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getDeployId() {
        return deployId;
    }

    public void setDeployId(String deployId) {
        this.deployId = deployId;
    }
    public String getIpAddress() {
        return ipAddress;
    }

    public void setIpAddress(String ipAddress) {
        this.ipAddress = ipAddress;
    }
    public Boolean getStatus() {
        return status;
    }

    public void setStatus(Boolean status) {
        this.status = status;
    }
    public Boolean getSupportDistri() {
        return supportDistri;
    }

    public void setSupportDistri(Boolean supportDistri) {
        this.supportDistri = supportDistri;
    }
    public Integer getCejc() {
        return cejc;
    }

    public void setCejc(Integer cejc) {
        this.cejc = cejc;
    }
    public Integer getSjc() {
        return sjc;
    }

    public void setSjc(Integer sjc) {
        this.sjc = sjc;
    }
    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }
    public Date getLastUpdateTime() {
        return lastUpdateTime;
    }

    public void setLastUpdateTime(Date lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }
    public Date getShutdownTime() {
        return shutdownTime;
    }

    public void setShutdownTime(Date shutdownTime) {
        this.shutdownTime = shutdownTime;
    }

    @Override
    public String toString() {
        return "TaskServer{" +
            "id=" + id +
            ", deployId=" + deployId +
            ", ipAddress=" + ipAddress +
            ", status=" + status +
            ", supportDistri=" + supportDistri +
            ", cejc=" + cejc +
            ", sjc=" + sjc +
            ", startTime=" + startTime +
            ", lastUpdateTime=" + lastUpdateTime +
            ", shutdownTime=" + shutdownTime +
        "}";
    }
}
